package cn.com.wdjedu.androidapp.wjeduandroid.support.lib.utils;

import android.support.v4.app.Fragment;

import cn.com.wdjedu.androidapp.wjeduandroid.ui.introduceui.AllCoursesFragment;
import cn.com.wdjedu.androidapp.wjeduandroid.ui.introduceui.BasicCoursesFragment;
import cn.com.wdjedu.androidapp.wjeduandroid.ui.introduceui.DemoCoursesFragment;


/**
 * Created by shan_yao on 2016/6/17.
 */
public class CourseFragmentFactory {
    public static Fragment createForNoExpand(int position) {
        Fragment fragment = null;
        switch (position) {
            case 0:
                fragment = new AllCoursesFragment();
                break;
            case 1:
                fragment = new BasicCoursesFragment();
                break;
            case 2:
                fragment = new DemoCoursesFragment();
                break;

        }
        return fragment;
    }

}
